<aside class="main-sidebar">

    <section class="sidebar">

        <!-- Sidebar user panel -->
        <div class="user-panel">
            <div class="pull-left image">
                <img src="<?= $directoryAsset ?>/img/user2-160x160.jpg" class="img-circle" alt="User Image"/>
            </div>
            <div class="pull-left info">
                <p><?= isset(Yii::$app->user->identity->username) ? Yii::$app->user->identity->username : "" ?></p>

                <a href="#"><i class="fa fa-circle text-success"></i>正在使用</a>
            </div>
        </div>

        <!-- search form -->
        <!--        <form action="#" method="get" class="sidebar-form">
                    <div class="input-group">
                        <input type="text" name="q" class="form-control" placeholder="Search..."/>
                        <span class="input-group-btn">
                            <button type='submit' name='search' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i>
                            </button>
                        </span>
                    </div>
                </form>-->
        <!-- /.search form -->
		<?=
		dmstr\widgets\Menu::widget(
				[
					'options' => ['class' => 'sidebar-menu'],
					'items' => [
							['label' => '导航栏', 'options' => ['class' => 'header']],
							[
							'label' => '管理员管理',
							'icon' => 'glyphicon glyphicon-user',
							'url' => '#',
							'items' => [
									['label' => '管理员管理', 'icon' => '', 'url' => ['/adminmanager'],],
									['label' => '添加管理员', 'icon' => '', 'url' => ['/adminmanager/create'],],
							],
						],
							[
							'label' => '用户管理',
							'icon' => 'glyphicon glyphicon-user',
							'url' => '#',
							'items' => [
									['label' => '用户管理', 'icon' => '', 'url' => ['/user'],],
									['label' => '添加用户', 'icon' => '', 'url' => ['/user/create'],],
							],
						],
							[
							'label' => '权限控制',
							'icon' => 'glyphicon glyphicon-user',
							'url' => '#',
							'items' => [
									['label' => '路由', 'icon' => '', 'url' => ['/admin/route'],],
									['label' => '权限', 'icon' => '', 'url' => ['/admin/permission'],],
									['label' => '角色', 'icon' => '', 'url' => ['/admin/role'],],
									['label' => '分配', 'icon' => '', 'url' => ['/admin/assignment'],],
									['label' => '菜单', 'icon' => '', 'url' => ['/admin/menu'],],
							],
						],
							[
							'label' => '分类管理',
							'icon' => 'glyphicon glyphicon-tower',
							'url' => '#',
							'items' => [
									['label' => '分类管理', 'icon' => '', 'url' => ['/category'],],
									['label' => '添加分类', 'icon' => '', 'url' => ['/category/create'],],
							],
						],
							[
							'label' => '商品管理',
							'icon' => 'glyphicon glyphicon-cloud-upload',
							'url' => '#',
							'items' => [
									['label' => '商品管理', 'icon' => '', 'url' => ['/product'],],
									['label' => '添加商品', 'icon' => '', 'url' => ['/product/create'],],
							],
						],
							[
							'label' => '地址管理',
							'icon' => 'glyphicon glyphicon-cloud-upload',
							'url' => '#',
							'items' => [
									['label' => '地址管理', 'icon' => '', 'url' => ['/address'],],
//									['label' => '添加地址', 'icon' => '', 'url' => ['/address/create'],],
							],
						],
							[
							'label' => '订单管理',
							'icon' => 'glyphicon glyphicon-cloud-upload',
							'url' => '#',
							'items' => [
									['label' => '订单管理', 'icon' => '', 'url' => ['/shop-order'],],
//									['label' => '添加商品', 'icon' => '', 'url' => ['/shop-order/create'],],
							],
						],
//                            [ 'label' => 'Login', 'url' => [ 'site/login' ], 'visible' => Yii::$app->user->isGuest ],
						[
							'label' => 'Same tools',
							'icon' => 'fa fa-share',
							'url' => '#',
							'items' => [
									['label' => 'Gii', 'icon' => 'fa fa-file-code-o',
									'url' => ['/gii'],],
									['label' => 'Debug', 'icon' => 'fa fa-dashboard',
									'url' => ['/debug'],],
									[
									'label' => 'Level One',
									'icon' => 'fa fa-circle-o',
									'url' => '#',
									'items' => [
											['label' => 'Level Two', 'icon' => 'fa fa-circle-o',
											'url' => '#',],
											[
											'label' => 'Level Two',
											'icon' => 'fa fa-circle-o',
											'url' => '#',
											'items' => [
													['label' => 'Level Three', 'icon' => 'fa fa-circle-o',
													'url' => '#',],
													['label' => 'Level Three', 'icon' => 'fa fa-circle-o',
													'url' => '#',],
											],
										],
									],
								],
							],
						],
					],
				]
		)
		?>

    </section>
</aside>
